<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>wechat</title>

<link  rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.min.css" />
<link  rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap-theme.min.css" />  
<link  rel="stylesheet" type="text/css" href="css/fontawesome/font-awesome.min.css" />  


<script type="text/javascript" src="js/jquery/jquery-1.12.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="js/handlebars/handlebars-v4.0.5.js"></script>

<script>
$(document).ready(function(){
  
});
function select() {
	var selected = $("#selectType").val();
	if(selected == 3){
		$("#correspond").css("display","block");
	}
}

function vaild() {
	var verifyKey = $("#verifyKey").val();
	var menuinfo = $("#menuinfo").val();
	
	if("" == verifyKey || undefined == verifyKey){
		$("#hint").css("display","block");
		$("#hint").html("请输入验证key");
		return false;
	}
	if("" == menuinfo || undefined == menuinfo){
		$("#hint").css("display","block");
		$("#hint").html("请输入菜单信息");
		return false;
	}


	return true;
}
</script>
</head>
<body>

	<div class="row">
		<div class="col-md-3"></div>
		<div class="col-md-6">
			<nav class="navbar navbar-default navbar-static-top">
				<div class="container-fluid">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed"
							data-toggle="collapse"
							data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
							<span class="sr-only">Toggle navigation</span>
							 <span class="icon-bar"></span>
							 <span class="icon-bar"></span> 
							 <span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#"><i class="fa fa-weixin" aria-hidden="true"></i></a>
					</div>

					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse"
						id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li><a href="./menu.jsp">Menu</a></li>
							<li><a href="./index.jsp">Rest</a></li>
						</ul>


					</div>
					<!-- /.navbar-collapse -->
				</div>
				<!-- /.container-fluid -->
			</nav>
		</div>
	</div>



	<div class="row">
		<div class="col-md-4"></div>

		<div class="col-md-3">
			<div class="page-header">
				<h1>
				  <i class="fa fa-weixin" aria-hidden="true"></i>
				         重置Access <small>重置对应的access</small>
				</h1>
			</div>
			<div id="hint"  class="alert alert-danger" role="alert" style="display:none"></div>
			<form action="EmergencyServlet" method="post"  onsubmit="return vaild()">
				<div class="form-group">
					<label for="accessKey">验证 key</label> 
					<input type="text" class="form-control" name="verifyKey" id="verifyKey" placeholder="验证 key">
				</div>
				
				<div class="form-group">
					<label for="menuinfo">menuinfo</label> 
					<textarea  type="text" class="form-control" name="menuinfo" id="menuinfo" placeholder="menuinfo" ></textarea>
				</div>
				<input type="hidden"  name="type" value="menu">
				
				<div class="row">
					<div class="col-md-offset-9">
						<button type="submit" class="btn btn-primary">Submit</button>
					</div>
				</div>

			</form>
		</div>

		<div class="col-md-4"></div>
	</div>


</body>
</html>